import request from '@/utils/request'

// 查询年卡下景区列列表
export function listAnnualPlace(query) {
  return request({
    url: '/index/annualPlace/list',
    method: 'get',
    params: query
  })
}

// 查询年卡下景区列详细
export function getAnnualPlace(id) {
  return request({
    url: '/index/annualPlace/' + id,
    method: 'get'
  })
}

// 新增年卡下景区列
export function addAnnualPlace(data) {
  return request({
    url: '/index/annualPlace',
    method: 'post',
    data: data
  })
}

// 修改年卡下景区列
export function updateAnnualPlace(data) {
  return request({
    url: '/index/annualPlace',
    method: 'put',
    data: data
  })
}

// 删除年卡下景区列
export function delAnnualPlace(id) {
  return request({
    url: '/index/annualPlace/' + id,
    method: 'delete'
  })
}
